<template>
  <div class="sv-box">
    <main class="main">
      <h1>
        SV-UI
      </h1>
      <p>
        一款轻量级、模块化的前端UI组件库
      </p>
      <div>
        <button class="btns" @click="toNav">开始使用</button>
        <button class="btns"><a href="https://gitee.com/selseycass/sv-ui">gitee项目</a></button>
      </div>
    </main>
    <div class="bg"></div>
  </div>
</template>

<script>
export default {
  name: 'Welcome',
  data () {
    return {
    }
  },
  methods: {
    toNav () {
      this.$router.push('/nav')
    }
  }
}
</script>

<style scoped>
  .main{
    display: flex;
    height: 300px;
    align-items: center;
    flex-wrap: wrap;
  }
  .main h1{
    font-size: 70px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
  .main p,.main div{
    font-size: 35px;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
  }
  .main .btns{
    margin: 0 20px;
    background: #41b883;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 30px;
    font-size:18px;
    /*点击不出现蓝色边框*/
    outline: none;
  }
  .main a{
    text-decoration: none;
    color: #fff;
  }
  .main .btns:hover{
    cursor: pointer;
  }
  .bg{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-repeat: no-repeat;
    background-image: url("../assets/babel.png");
    background-size: cover;
  }
</style>
